﻿<Window x:Class="CSSAdriverapp.EditEventVehicle"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="EditEventVehicle" Height="300" Width="300" xmlns:my="clr-namespace:CSSAdriverapp">
    <Grid Background="#C5AFB1AF">
        <DataGrid AutoGenerateColumns="False" Height="200" HorizontalAlignment="Left" Margin="12,12,0,0" Name="displayDataGrid" VerticalAlignment="Top" Width="108" DataContext="{Binding RelativeSource={RelativeSource FindAncestor, AncestorType=my:EditEventVehicle, AncestorLevel=1}, Path=vehicles}" GridLinesVisibility="None" CanUserAddRows="False" CanUserResizeColumns="False" AreRowDetailsFrozen="False" SelectionMode="Single" IsReadOnly="True">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding Path=Name}" Header="Name" />
            </DataGrid.Columns>
        </DataGrid>
        <Button Content="Save" Height="23" HorizontalAlignment="Left" Margin="159,189,0,0" Name="saveButton" VerticalAlignment="Top" Width="75" Click="saveButton_Click" />
    </Grid>
</Window>
